cmake_minimum_required(VERSION 2.6)
project(RECO_PROXY)
#SET(CMAKE_BUILD_TYPE "Debug")  
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb -fPIC")  
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -fPIC")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../bin/)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../api/)
#set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../api/)
add_definitions(-std=c++11)
aux_source_directory(. DIR_SRCS)
#target_link_libraries(Demo_VAD ${CMAKE_CURRENT_SOURCE_DIR}/SDK/libmfe_JNI.so)
add_subdirectory(recoProxy)
add_subdirectory(asr)
add_subdirectory(vad)
add_subdirectory(options)
add_subdirectory(utils/log)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../third_party/boost_1_74_0/stage/lib)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/asr/  ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/websocketpp  ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/pbkdf2-hmac-sha256 ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/boost_1_74_0/  ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/rapidjson/include/ )
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../third_party/spdlog/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/reporter)
link_libraries(recoProxyLib optionLib logLib vadLib asrLib boost_system ssl crypto)
#add_executable(RECO_PROXY ${DIR_SRCS})
add_library(recoProxy SHARED ${DIR_SRCS}) 
